<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/3/16
 * Time: 13:47
 */

namespace Home\Controller;
use Think\Controller;

class NavController extends Controller
{
    public function __construct()
    {
        parent::__construct();
        $catModel = D('Admin/Category');
        $catData = $catModel->getNavData();//print_r($catData);exit;
        $this->assign('catData' , $catData);
    }

    public function nav(){
        $this->display();
    }
}